<template>
    <div class="button-control">
        <el-button type="primary" v-for="item in totalMessage" :key="item.label" style="margin-bottom: 0.1rem;" size="small" @click="itemname(item)">{{item}}</el-button>
    </div>
</template>

<script>
    export default {
        name: "selectionHead",
        props:{
            totalMessage:Array
        },
        data(){
            return{
                currentCountry:''
            }
        },
        methods:{
            itemname(iteming){
                this.$emit('func',iteming)
            }
        }
    }
</script>

<style scoped lang="scss">
    .button-control{
        display: flex;
        flex-flow: wrap row;
        justify-content: center;
    }
</style>
